package product

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

// 定义函数，用于初始化商品路由组
func InitProductRoutes(r *gin.Engine) {
	product := r.Group("/product")
	{
		// /product/list
		product.GET("/list", func(ctx *gin.Context) {
			ctx.String(http.StatusOK, "这是商品列表")
		})
		product.GET("/detail", func(ctx *gin.Context) {
			ctx.String(http.StatusOK, "这是商品详情")
		})
	}
}
